package com.pearadmin.pro.modules.resource.mapper;

import com.baomidou.mybatisplus.core.injector.methods.DeleteById;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pearadmin.pro.modules.resource.entity.ResourceEntity;
import com.pearadmin.pro.modules.resource.entity.ResourceRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResourceMapper extends BaseMapper<ResourceEntity> {
    List<ResourceEntity> page(@Param("request") ResourceRequest request);
   int  deleteById(Integer id);

    Boolean edit(ResourceEntity resourceEntity);

    int getReNameCount(@Param("reName") String reName,@Param("reId") Integer reId);

    List<String> homeImg();
}
